package com.car.sale.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

public class News {
    private String title;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate day;
    private String url;
    private int id;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public LocalDate getDay() {
        return day;
    }

    public void setDay(LocalDate day) {
        this.day = day;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
